package com.thon.service.user.impl;

import java.util.HashMap;
import java.util.List;
import java.util.Map;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import com.thon.dao.user.UserSettingDao;
import com.thon.entity.user.UserSetting;
import com.thon.service.user.UserSettingService;

/**
 * @author Zemo
 * @mail chenzeming@lanbaoo.com
 * @date 2013-12-13 下午09:01:06
 * @description
 */
@Service
@Transactional
public class UserSettingServiceImpl implements UserSettingService {
	
	@Autowired
	private UserSettingDao userSettingDao;

	@Override
	public void add(UserSetting userSetting) {
		userSettingDao.save(userSetting);
	}

	@Override
	public void update(UserSetting userSetting) {
		
		userSettingDao.update(userSetting);
	}

	@Override
	public List<UserSetting> getUserSetting(Integer userId) {
		
		return userSettingDao.getUserSettingByUserId(userId);
	}

	@Override
	public Boolean SettingStatus(Integer uid, String metaKey) {
		return userSettingDao.SettingStatus(uid, metaKey);
	}

}
